<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{$appConfigs.title}</title>

    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/{$page_theme | default: 'default'}/easyui.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/style/my.css">
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/javascript/my.js"></script>
    
</head> 
<body onpageshow="resetPagination('dg')">
    {datagrid id="dg" datasource="/invest/StrategyTypeService/findAll.do" view="i_strategy_type"}
    {form id="dlg" view="i_strategy_type" }

    <script>
    {literal}
	var term_type = {0:"无", 1:"短线", 2:"中线", 3:"长线", 4:"长线底仓"};
    field_formatters.sensitive=function (value, row, index){
		if(value == 0){
			return "无";
		} else if(value == 1){
			return "市值敏感";
		} else if(value == 2){
			return "价格敏感";
		} else if(value == 3){
			return "市值&价格敏感";
		}
    }
    field_formatters.term_type=function (value, row, index){
		if(value && term_type[value]){
			return term_type[value];
		} else {
			return value;
		}
    }
    {/literal}
    </script>
</body>
</html>